$def with (login_form)

<HTML>
    <HEAD>
        <TITLE>::OMSM::</TITLE>
        <META http-equiv=Content-Type content="text/html; charset=utf-8">
        <LINK href="static/css/general.css" type=text/css rel=stylesheet>
        <LINK href="static/css/main.css" type=text/css rel=stylesheet>
        <STYLE type=text/css>
            BODY {COLOR: white}
            #commentForm { width: 500px; }
            #commentForm label { width: 250px; }
            #commentForm label.error, #commentForm input.submit { margin-left: 253px; }
        </STYLE>
        <script type="text/javascript" src="static/js/j_lib/jquery.js"></script>
        <script type="text/javascript" src="static/js/j_lib/jquery.delegate.js"></script>
        <script type="text/javascript" src="static/js/j_lib/jquery.validate.js"></script>
        <script type="text/javascript" src="static/js/j_lib/jquery.form.js"></script>
        <script type="text/javascript" src="static/js/j_lib/jquery.metadata.js"></script>
        <script type="text/javascript" src="static/js/j_lib/jquery.ajaxQueue.js"></script>

        <script type="text/javascript">
            \$(document).ready
            (
                function()
                {
                    var options = {
                        target: "#result"
                    };

                    \$("#loginform").validate(
                    {
                        messages: {
                            username: "<I><B>*&nbsp;&nbsp;Please enter username</B></I>",
                            password: "<I><B>*&nbsp;&nbsp;Please enter password</B></I>"
                        }
                    }
                    );
                }
            );
        </script>
</HEAD>

<BODY style="BACKGROUND: #1f778c">
    <form class="cmxform" id="loginform" method="post">
        <TABLE style="MARGIN-TOP: 100px" cellSpacing=0 cellPadding=0 align=center>
            <TBODY>
                <TR>
                    <TD><IMG height=256 alt=ECSHOP src="static/images/login.png" 
                        width=178 border=0></TD>
                    <TD style="PADDING-LEFT: 50px">
                        <TABLE>
                            <TBODY>
                                <TR>
                                    <div>
                                        $:login_form.render()
                                        <input type="submit" value="login">
                                </div></TR>
                </TBODY></TABLE></TD></TR>
        </TBODY></TABLE>
    </form>
</BODY>
</HTML>
